package com.sh.ssao.lottery.choujiang.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sh.ssao.lottery.choujiang.bean.LuckDraw;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;


/**
 * <p>
 * 中奖号码库 Mapper 接口
 * </p>
 *
 * @author gzgs
 * @since 2022-12-08 15:27:40
 */
public interface LuckDrawMapper extends BaseMapper<LuckDraw> {
    @Select("<script> " +
        "SELECT * FROM luck_draw " +
        " <where>${ew.sqlSegment}</where>" +
        " </script>")
    IPage<LuckDraw> listPage(Page page, @Param(Constants.WRAPPER) QueryWrapper queryWrapper);

    @Select("<script> " +
        "SELECT * FROM luck_draw " +
        " <where>${ew.sqlSegment}</where>" +
        " </script>")
    List<Map<String, Object>> export(@Param(Constants.WRAPPER) QueryWrapper queryWrapper);

}
